package cn.kgc.commons.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @description:
 * @author: 石浩杰
 * @date: 2022-11-29 08:48
 */
@Component
@PropertySource(value = "classpath:application.yml",encoding = "utf-8")
@ConfigurationProperties(prefix = "alioss")
@Data
public class OssFileConfig {

    private String endpoint;

    private String accessKeyId;

    private String accessSecret;

    private String bucketName;

    private String objectName;

    private String osshost;
}
